package com.xiaohe.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaohe.common.utils.PageUtils;
import com.xiaohe.gulimall.member.Exception.PhoneExistException;
import com.xiaohe.gulimall.member.Exception.UserNameExistException;
import com.xiaohe.gulimall.member.entity.MemberEntity;
import com.xiaohe.gulimall.member.vo.MemberLoginVo;
import com.xiaohe.gulimall.member.vo.MemberRegistVo;
import com.xiaohe.gulimall.member.vo.SocialUser;

import java.util.Map;

/**
 * 会员
 *
 * @author hzb
 * @email 986125495@qq.com
 * @date 2021-12-17 21:24:58
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo memberRegistVo);

    void checkPhoneUnique(String phone) throws PhoneExistException;

    void checkUserNameUnique(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

